package com.qdlc.p2p.biz.tpp.model;

import com.qdlc.p2p.common.constant.SinaConstant;
import com.qdlc.p2p.common.util.DateUtil;
import com.qdlc.p2p.common.util.OrderNoUtil;
import com.qdlc.p2p.dal.common.SystemConfigHelper;
import com.qdlc.p2p.dal.common.SystemConfigHelper.Nid;

/**
 * 新浪 - 冻结余额
 * @author zlhx
 * @version 2.0
 * @date 2015年8月11日 下午2:17:18
 */
public class SinaBalanceFreeze extends SinaModel {
	
	public SinaBalanceFreeze(){
		super();
	}
	
	public SinaBalanceFreeze(String identity_id,String amount,String summary,String extend_param){
		super();
		this.amount = amount;
		this.summary = summary;
		this.out_freeze_no = OrderNoUtil.getInstance().getSerialNumber();
		this.account_type = SystemConfigHelper.getValue(Nid.ACCOUNT_TYPE);
		this.setExtend_param(extend_param);
		this.setRequest_time(DateUtil.dateStr3(DateUtil.getNow()));
		this.setIdentity_id(identity_id);
		this.setIdentity_type(SinaConstant.IDENTITY_TYPE_UID);
		this.setService("balance_freeze");
		
	}
	
	/**
	 * 订单号 
	 */
	private String out_freeze_no;
	
	/**
	 * 账户类型 默认基本户
	 */
	private String account_type;
	
	/**
	 * 冻结金额
	 */
	private String amount;
	
	/**
	 * 摘要
	 */
	private String summary;
	
	/**
	 * 待签名字符数组
	 */
	private String[] signParamNames = new String[]{"service","version","request_time","partner_id","_input_charset","identity_id","identity_type","account_type","out_freeze_no","amount","summary"};
	
	/**
	 * 提交签名字符数组
	 */
	private String[] subParamNames = new String[]{"service","version","request_time","partner_id","_input_charset","identity_id","identity_type","account_type","out_freeze_no","amount","summary","sign_type","sign"};

	/**
	 * 获取 订单号 
	 * @return 
	 */
	public String getOut_freeze_no() {
		return out_freeze_no;
	}

	/**
	 * 设置 订单号 
	 * @param 
	 */
	public void setOut_freeze_no(String out_freeze_no) {
		this.out_freeze_no = out_freeze_no;
	}

	/**
	 * 获取 账户类型 默认基本户
	 * @return 
	 */
	public String getAccount_type() {
		return account_type;
	}

	/**
	 * 设置 账户类型 默认基本户
	 * @param 
	 */
	public void setAccount_type(String account_type) {
		this.account_type = account_type;
	}

	/**
	 * 获取 冻结金额
	 * @return 
	 */
	public String getAmount() {
		return amount;
	}

	/**
	 * 设置 冻结金额
	 * @param 
	 */
	public void setAmount(String amount) {
		this.amount = amount;
	}

	/**
	 * 获取 摘要
	 * @return 
	 */
	public String getSummary() {
		return summary;
	}

	/**
	 * 设置 摘要
	 * @param 
	 */
	public void setSummary(String summary) {
		this.summary = summary;
	}


	/**
	 * 获取 待签名字符数组
	 * @return 
	 */
	public String[] getSignParamNames() {
		return signParamNames;
	}

	/**
	 * 设置 待签名字符数组
	 * @param 
	 */
	public void setSignParamNames(String[] signParamNames) {
		this.signParamNames = signParamNames;
	}

	/**
	 * 获取 提交签名字符数组
	 * @return 
	 */
	public String[] getSubParamNames() {
		return subParamNames;
	}

	/**
	 * 设置 提交签名字符数组
	 * @param 
	 */
	public void setSubParamNames(String[] subParamNames) {
		this.subParamNames = subParamNames;
	}
	
}
